home *** CD-ROM | disk | FTP | other *** search
- Crosstalk Script files
-
- The following is a rather lenghty procedure to set up a menu processing system
- for Crosstalk. Included are procedures to perform automatic logon and capture
- to the IBMSIG which may be extracted and used as standalone Xtalk scripts.
-
- The script and menu files were written by Steven Greenberg, who seems to know
- everything there is to know about script files, and this document put together
- by Don Watkins, who knows nothing about script files. Steve has donated these
- scripts to the SIG and hopes they'll be of some help and use to members.
-
- The Menu facility is composed of two files:
- AUTOEXEC.BAT - Contains the command XTALK MENU
- which brings up XTALK on power-up or
- or reset and executes the file MENU.XTK
- MENU.XTS - Contains the menu text and key trapping
- script code.
- Contents of MENU.XTS (editors note.... the CROSSTALK - XVI were done very
- nicely in with ASCII characters 205 (top) and 186(sides) they have been
- changed as CIS will not accept them):
-
- SCREEN TERMINAL
- CLEAR
- MESSAGE
- ***********************************
- * *
- * C R O S S T A L K - X V I *
- * *
- ***********************************
-
-
-
- Information Services Available:
-
-
- 1) CompuServe
-
- 2) Dow Jones
-
- 3) The Source
-
- 4) Home Banking
-
-
- 5) Exit to DOS
-
-
- .
- LABEL ASKSERVICE
- ASK Please choose one of the above (1,2,3,4,5):
- IF -012345 JUMP ASKSERVICE
- JUMP DO-@
- LABEL DO-1
- CLEAR
- MESSAGE
- ***********************************
- * *
- * C R O S S T A L K - X V I *
- * *
- ***********************************
-
-
-
- Information Service Chosen:
-
-
- CompuServe
- .
- LABEL CSSIG-YN
- ASK Do you wish to automaticaly capture the latest info on the IBM SIG (Y,N):
- IF -YN JUMP CSSIG-YN
- IF N JUMP CSSIG-N
- MESSAGE
-
- IBM PC Special Intrest Group
- .
- LABEL CSSPEED1
- ASK Please choose the transmission speed - 300 or 1200 baud (3=300,1=1200):
- IF -13 JUMP CSSPEED1
- IF 1 SPEED 1200
- IF 3 JUMP CSSPEED1-3
- MESSAGE
-
- 1200 baud
-
-
-
-
-
-
-
- .
- JUMP CSCONFIRM1
- LABEL CSSPEED1-3
- SPEED 300
- MESSAGE
-
- 300 baud
-
-
-
-
-
-
-
- .
- LABEL CSCONFIRM1
- ASK Please confirm that the above choices are correct (Y,N):
- IF -YN JUMP CSCONFIRM1
- IF N RWIND
- LO CSIBMSIG
- LABEL CSSIG-N
- MESSAGE
-
- Standard Log-On
- .
- LABEL CSSPEED2
- ASK Please choose the transmission speed - 300 or 1200 baud (3=300,1=1200):
- IF -13 JUMP CSSPEED2
- IF 1 SPEED 1200
- IF 3 JUMP CSSPEED2-3
- MESSAGE
-
- 1200 baud
-
-
-
-
-
-
-
- .
- JUMP CSCONFIRM2
- LABEL CSSPEED2-3
- SPEED 300
- MESSAGE
-
- 300 baud
-
-
-
-
-
-
-
- .
- LABEL CSCONFIRM2
- ASK Please confirm that the above choices are correct (Y,N):
- IF -YN JUMP CSCONFIRM2
- IF N RWIND
- LO CSERVE
- ABORT
- LABEL DO-2
- CLEAR
- MESSAGE
- ***********************************
- * *
- * C R O S S T A L K - X V I *
- * *
- ***********************************
-
-
-
- Information Service Chosen:
-
-
- Dow Jones
- .
- LABEL DJ1
- MESSAGE
-
- Standard Log-On
- .
- LABEL DJSPEED
- ASK Please choose the transmission speed - 300 or 1200 baud (3=300,1=1200):
- IF -13 JUMP DJSPEED
- IF 1 SPEED 1200
- IF 3 JUMP DJSPEED3
- MESSAGE
-
- 1200 baud
-
-
-
-
-
-
-
- .
- JUMP DJCONFIRM
- LABEL DJSPEED3
- SPEED 300
- MESSAGE
-
- 300 baud
-
-
-
-
-
-
-
- .
- LABEL DJCONFIRM
- ASK Please confirm that the above choices are correct (Y,N):
- IF -YN JUMP DJCONFIRM
- IF N RWIND
- LO DOWJONES
- ABORT
- LABEL DO-3
- CLEAR
- MESSAGE
- ***********************************
- * *
- * C R O S S T A L K - X V I *
- * *
- ***********************************
-
-
-
- Information Service Chosen:
-
-
- The Source
- .
- LABEL TS1
- MESSAGE
-
- Standard Log-On
- .
- LABEL TSSPEED
- ASK Please choose the transmission speed - 300 or 1200 baud (3=300,1=1200):
- IF -13 JUMP TSSPEED
- IF 1 SPEED 1200
- IF 3 JUMP TSSPEED-3
- MESSAGE
-
- 1200 baud
-
-
-
-
-
-
-
- .
- JUMP TSCONFIRM
- LABEL TSSPEED-3
- SPEED 300
- MESSAGE
-
- 300 baud
-
-
-
-
-
-
-
- .
- LABEL TSCONFIRM
- ASK Please confirm that the above choices are correct (Y,N):
- IF -YN JUMP TSCONFIRM
- IF N RWIND
- LO SOURCE
- ABORT
- LABEL DO-4
- CLEAR
- MESSAGE
- ***********************************
- * *
- * C R O S S T A L K - X V I *
- * *
- ***********************************
-
-
-
- Information Service Chosen:
-
-
- Bank of America - Home Banking
- .
- LABEL BA1
- MESSAGE
-
- Standard Log-On
- .
- LABEL BASPEED
- ASK Please choose the transmission speed - 300 or 1200 baud (3=300,1=1200):
- IF -13 JUMP BASPEED
- IF 1 SPEED 1200
- IF 3 JUMP BASPEED-3
- MESSAGE
-
- 1200 baud
-
-
-
-
-
-
-
- .
- JUMP BACONFIRM
- LABEL BASPEED-3
- SPEED 300
- MESSAGE
-
- 300 baud
-
-
-
-
-
-
-
- .
- LABEL BACONFIRM
- ASK Please confirm that the above choices are correct (Y,N):
- IF -YN JUMP BACONFIRM
- IF N RWIND
- LO HOMEBANK
- ABORT
- LABEL DO-5
- CLEAR
- MESSAGE
- ***********************************
- * *
- * C R O S S T A L K - X V I *
- * *
- ***********************************
-
-
-
- < < < W A R N I N G > > >
-
-
- Exit to DOS
-
-
-
-
-
-
-
-
-
-
-
- .
- ALERT
- LABEL XDCONFIRM
- ASK Please confirm that the above choice is correct (Y,N):
- IF -YN JUMP XDCONFIRM
- IF N RWIND
- XD
- LABEL DO-0
- CLEAR
- MESSAGE
- ***********************************
- * *
- * C R O S S T A L K - X V I *
- * *
- ***********************************
-
-
-
- < < < W A R N I N G > > >
-
-
- Exit to CROSSTALK XVI
-
-
-
-
-
-
-
-
-
-
-
- .
- ALERT
- LABEL XCCONFIRM
- ASK Please confirm that the above choice is correct (Y,N):
- IF -YN JUMP XCCONFIRM
- IF N RWIND
- SCREEN STATUS
- CLEAR
- ABORT
-
- MENU script ends with ABORT
-
- As you will note there are many options available with the menu, however all
- the script files will not be included here as they may not be of interest to
- all members. The CIS and CIS/IBMSIG logon scripts will be included and
- will hopefully serve as models for script files that serve your needs.
- The CIS logon script is composed of two files:
- CSERVE.XTK - The standard Xtalk .XTK file with slight
- modifications. You can, of course, alter
- the function keys to suit your needs.
- CSERVE.XTS - The logon script file
- CSERVE.XTK follows:
- NAme CompuServe Information Service
- NUmber nnn-nnnn
- ACcept Everything
- ANswback On
- ATten Esc
- BReak End
- SWitch Home
- CWait None
- LWait None
- DEbug Off
- DPrefix ATDT
- DSuffix |
- EMulate None
- INfilter On
- LFauto Off
- MOde Call
- POrt 1
- PWord
- TImer On
- TUrnarnd Enter
- BKsize 1
- CApture Off
- COmmand ETX (^C)
- DAta 8
- DUplex Full
- OUtfiltr On
- PArity None
- PRinter Off
- STop 1
- TAbex Off
- BLankex Off
- UConly Off
- FK 1 ""
- FK 2 ""
- FK 3 ""
- FK 4 "CROSSTALK - XVI "
- FK 5 "@CApture /|"
- FK 6 "@PRinter /|"
- FK 7 "@TYpe|"
- FK 8 "@CApture <24|"
- FK 9 "@SNap|"
- FK 10 "@SNap 24|"
- FK S1 ""
- FK S2 ""
- FK S3 ""
- FK S4 ""
- FK S5 ""
- FK S6 ""
- FK S7 ""
- FK S8 ""
- FK S9 ""
- FK S10 ""
- FK C1 ""
- FK C2 ""
- FK C3 ""
- FK C4 ""
- FK C5 ""
- FK C6 ""
- FK C7 ""
- FK C8 ""
- FK C9 ""
- FK C10 ""
- FK A1 ""
- FK A2 ""
- FK A3 ""
- FK A4 ""
- FK A5 ""
- FK A6 ""
- FK A7 ""
- FK A8 ""
- FK A9 ""
- FK A10 ""
- GO q30/30
-
- CSERVE.XTK ends with GO q30/30
- CSERVE.XTS follows:
-
- MESSAGE
- Logging onto CompuServe . . . please wait a moment . . .
- .
- ; Log onto CompuServe, give ID and Password.
- WAIT QUIET 20
- REPLY ^C
- WAIT STRING "ID:"
- REPLY 12345,678|
- WAIT STRING "Password:"
- REPLY MYWORD!|
-
- CSERVE.XTS ends with REPLY MYWORD!|
- In order to make CSERVE.??? function you will have to add you local CIS node
- number as well as your ppn (user id) and password (sorry, no free lunch). This
- script also assumes that you are calling in through a direct CIS node and
- bypassing Telenet and Tymnet.
-
- To execute the logon and capture all messages to disk you will need two files:
- CSIBMSIG.XTK - Standard Xtalk .XTK file with slight
- modification. Same as CSERVE.XTK so
- just COPY as CSIBMSIG.XTK.
- CSIBMSIG.XTS - Script file for CIS login, transfer to
- IBMSIG and retrevial of all messages.
-
- CSIGMSIG.XTS follows:
- MESSAGE
- Logging onto CompuServe . . . please wait a moment . . .
- .
- ; Log onto CompuServe, give ID and Password.
- WAIT QUIET 20
- REPLY ^C
- WAIT STRING "ID:"
- REPLY 12345,678|
- WAIT STRING "Password:"
- REPLY MYWORD!|
- WAIT QUIET 15
- REPLY |
- ; Wait for system prompt and then goto IBM PC SIG.
- WAIT CHAR "!"
- REPLY GO PCS-131|
- ; Start capture, wait for prompt, start info dump.
- CAPTURE B:CSTEMP.TXT
- WAIT STRING "FUNCTION:"
- REPLY RTN|
- ; Watch for first FUNCTION: prompt.
- WHEN "FUNCTION:" REPLY | : DO
- WAIT MANUAL
- ; Watch for second FUNCTION: prompt.
- WAIT MANUAL
- ; Watch for prompt and then log-off.
- WHEN -
- WAIT STRING "FUNCTION:"
- REPLY BY|
- WAIT STRING "time"
- WAIT DELAY 35
- BY
- ; Save file and exit program.
- DO MENU
-
- CSIBMSIG.XTS ends with DO MENU
- WARNING!!
- This script assumes you have no messages waiting, if so it would hand on the
- pending message, and if left unattended would leaving you hanging at the
- "reply, delete, continue" prompt forever (or something close to it).
-
- To use the script files contained in this documentent just extract out each
- file with a good text editor or word processor. Each module should run as a
- standalone script with using the MENU if you're so inclined.
-
- These files were provided to be helpful hints on Xtalk script writing as well
- be actual working script files. If they cause your machine to blow up or
- result in you incurring 182 hours of CIS connect time, the author assumes no
- libaility. Altho these scripts are used on a daily basis you should, as with
- any new program or procedure, use them with a cautious eye for the first
- several times of use.
-
- Having said that.....ENJOY!!
-
- Thanks and a tip of the hat to Steve Greenberg for the use and distribution of
- his files.
- Don Watkins 76003,252
- 2/14/84